import random,time

aa = random.randint(10,100)
aa_list = []
for i in range(1,1000):
    aa = random.randint(10, 100)
    aa_list.append(aa)

print(aa_list)


# 选择排序
def selectSort(aa_list):
    for i in range(len(aa_list)-1):
        min_list = i
        for j in range(i+1, len(aa_list)):
            if aa_list[j] < aa_list[min_list]:
                min_list = j
        aa_list[min_list],aa_list[i] = aa_list[i],aa_list[min_list]
        # print(list)
    return aa_list


print(selectSort((aa_list)))
start = time.perf_counter()
print(aa_list)
print("耗时>>>",start)